package javabase.schoolwork.day6_1to3;

/**
 * @author fance
 * @date 2018/6/1 21:21
 */
public class Screen {
    private String brand;
    private long num;
    private String ppi;

    public Screen() {
    }

    public Screen(String brand, long num, String ppi) {
        this.brand = brand;
        this.num = num;
        this.ppi = ppi;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getPpi() {
        return ppi;
    }

    public void setPpi(String ppi) {
        this.ppi = ppi;
    }

    @Override
    public String toString() {
        return "Screen{" +
                "brand='" + brand + '\'' +
                ", num=" + num +
                ", ppi='" + ppi + '\'' +
                '}';
    }

    public void display(){
        System.out.println("screen  display. ..");
    }
}
